<tr id="<?= $this->getAsyncId() ?>">

    <? if ( $this->editable ): ?>
        <td>
            <a href="<?= $this->asyncUrlEvent( 'cerrar' ) ?>" >cerrar</a>
        </td>
        <td>
            <input type="text" id="form_fiscal_id_<?= $this->id ?>" name="form_fiscal_id" value="<?= htmlspecialchars( $this->form_fiscal_id ) ?>" />
        </td>
        <td>
            <input type="text" id="form_name_<?= $this->id ?>" name="form_name" value="<?= htmlspecialchars( $this->form_name ) ?>" />
        </td>
        <td>
            <input type="text" id="form_commercial_name_<?= $this->id ?>" name="form_commercial_name" value="<?= htmlspecialchars( $this->form_commercial_name ) ?>" />
        </td>
        <td>
            <? if ( $this->logo != '' ): ?>
                <form method="POST" action="." >
                    <?= $this->asyncFormEvent( 'eliminar_logo' ) ?>
                    <input type="image" src="archivos/logos/<?= $this->id ?>.<?= $this->logo ?>"  width="50" height="50" />
                </form>
            <? else: ?>
                <form method="POST" action="."   accept-charset="UTF-8" enctype="multipart/form-data">
                    <?= $this->formEvent( 'establecer_logo' ) ?>
                    <input type="file" name="logo" onchange="this.form.submit()" />
                </form>
            <? endif; ?>
            <br />
            <? if ( $this->css == 'S' ): ?>
                <form method="POST" action="." >
                    <?= $this->asyncFormEvent( 'eliminar_css' ) ?>
                    <input type="image" src="images/css.gif"  />
                </form>
            <? else: ?>
                <form method="POST" action="."   accept-charset="UTF-8" enctype="multipart/form-data">
                    <?= $this->formEvent( 'establecer_css' ) ?>
                    <input type="file" name="css" onchange="this.form.submit()" />
                </form>
            <? endif; ?>
        </td>
        <td>

            <form action="." method="post"  accept-charset="UTF-8" onsubmit="return comprobar_formulario(<?= $this->id ?>, this)">
                <?= $this->asyncFormEvent( 'editar' ) ?>
                <input type="hidden" name="fiscal_id" value="<?= htmlspecialchars( $this->fiscal_id ) ?>" />
                <input type="hidden" name="name" value="<?= htmlspecialchars( $this->name ) ?>" />
                <input type="hidden" name="commercial_name" value="<?= htmlspecialchars( $this->commercial_name ) ?>" />
                <input type="hidden" name="logo" value="<?= $this->logo ?>" />
                <input type="hidden" name="css" value="<?= $this->css ?>" />
                <input type="hidden" name="quote_update" value="0" />
                <input type="submit" value="guardar" />
            </form>
        </td>
    <? else: ?>

        <td>
            <a href="<?= $this->asyncUrlEvent( 'editar' ) ?>"> editar </a>
        </td>
        <td><?= htmlspecialchars( $this->fiscal_id ) ?></td>
        <td><?= htmlspecialchars( $this->name ) ?></td>
        <td><?= htmlspecialchars( $this->commercial_name ) ?></td>
        <td><a href="<?= $this->asyncUrlEvent( 'entrar' ) ?>">entrar</a></td>
        <td>
            <form action="." method="post"  accept-charset="UTF-8" onsubmit="return confirm('¿Desea elimnar la organizacion con CIF: <?= self::JSEncoding( $this->fiscal_id ) ?>?')">
                <?= $this->asyncFormEvent( 'eliminar' ) ?>
                <input type="submit" value="eliminar" />
            </form>
        </td>

    <? endif; ?>

</tr>